package com.dhcc.bpm.modules.alarm.service.impl;

import com.dhcc.bpm.modules.alarm.entity.Template;
import com.dhcc.bpm.modules.alarm.vo.TemplateVO;
import com.dhcc.bpm.modules.alarm.mapper.TemplateMapper;
import com.dhcc.bpm.modules.alarm.service.ITemplateService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * @Description 告警内容模板表 服务实现类
 * @Author sjm
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
@Service
public class TemplateServiceImpl extends ServiceImpl<TemplateMapper, Template> implements ITemplateService {

	/**
	 * @Description 分页查询
	 * @Author xiafayu
	 * @Date 2020/2/24 17:31
	 * @param page
	 * @param template
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.alarm.vo.TemplateVO>
	 **/
	@Override
	public IPage<TemplateVO> selectTemplatePage(IPage<TemplateVO> page, TemplateVO template) {
		return page.setRecords(baseMapper.selectTemplatePage(page, template));
	}

}
